package io;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.Scanner;

public class ScannerDemo {
	public static void main(String[] args) throws FileNotFoundException {
		
		Scanner scan = new Scanner(new FileInputStream("a.txt"));
		String name = scan.next();
		int age = scan.nextInt();
		boolean marry = scan.nextBoolean();
		
		System.out.println("name: " + name);
		System.out.println("age: " + age);
		System.out.println("marry: " + marry);
		
	}
}
